package com.better.common.jwtauth.secruity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("jwt实体对象信息")
public class JwtAuthenticationRequest implements Serializable {
    private static final long serialVersionUID = -8445943548965154778L;
    @ApiModelProperty(value = "账号")
    @NotBlank(message = "{user.name.notBlank}")
    private String userName;
    @ApiModelProperty(value = "密码")
    @NotBlank(message = "{user.passwd.notBlank}")
    private String password;
    @ApiModelProperty(value = "验证码",hidden=true)
    private String validCode;

}
